package com.itcam.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:Cammy.Wu
 * Date:2024-05-07
 * Description:
 */

@RestController
@RequestMapping("hello")
public class HelloController {

    @Value("${cam.name}")
    private String name;

    @GetMapping("boot")
    public String hello(){
        System.out.println("name = " + name);
        return "hello springboot3❗❗❗";
    }

}
